got rid of unnecessary lines and fixed index.php html error