in send message dialog - flash messages were not displaying