add register view and controller.