Update main_tpl.php