revised template.html