Tidied up index.php