model, controller and route setup