Update main_template.tpl