upgrade index.php