some formatting of template html