update htmltemplate