Update mainfile.php