revert main.php