replacing previous index.php