Message dialogs use new message class

The message dialogs now use the new message.class to display the
messages.