added insert message into the dialog