adding controller and view