Refactored routing system to use path after the index.php rather than using get variable for url