initialize the controller and model