Currently the templates are inline strings inside the view file. Extract them outside.
Currently the templates are inline strings inside the view file. Extract them outside.