updating the chat window