adding controller and model