removing temp files and adding index.php