working with the ui