update the text of page