started to make the ui get data from the controller