reorganizes the routes file and index page