update the text of UI