Simplify index.php