update index.php code