added message class for easy construction of the message window