Update maintemplate.html