modified pages that makes index.php work well