coded displaying of received messages in server