Implemented event handler for messages
Brought in the chat box stuff
merged