Modify the routes for the pages and remove unesserary ones.