updating the ui