controller and model setting