Added a chat window and functionality