displaying messages in the chatroom