restore the title of the text input dialog