Changes to main.php

new changes to main.php