added formatting for message item