update to new index.php for main page