changed the layout of message-card