Broke down the 'index.php' file into smaller files