simplify index.php