routes and states set up