update dialog and message text