removed unnecessary else block in the index.php routing.