Made index.php dynamic