Wiring up the controller with the UI