simplified controller and view