Update main_template.php