Edit messages in dialog box