Dialog form addMessage method updated to enable inheritting classes set the message properly.