update title and text