Added register controller and view.