Updating index.php code