Adding the controller for the output view