updates index.php with needed tasks