Updated the index.php with some minor adjustments