added controller and model