Update template.tpl