Hook up the UI with the model