finish controller and view