displaying messages from the server