Chat window is able to show different types of messages received from the server