updates the text