Update main.php