Improve index.php