updating the routes for the model