Modified index.php for the new structure