Removed index.php and copied code to main.php