index.php directs to proper page