update textedit before text so that text picks up on changes