Refactoring index.php - mostly indentation