index.php cleaned up