updating routes and controllers