ref #4021: add message detail view - bug fixes