updates textedit