setting up the models and route