Changed how pages are loaded in index.php