added the chat!

also formalized the UI Handler interface.