Define the view and controller in registry