simplifying index.php