Linked the UI with the model