Update main.php in View