cleaned up template for viewing messages