Should clear old messages when displaying modal dialog.