added support for message boxes