Displaying Messages in the Chat Window