update to main.php