type controller and view