add view and controller.