Adding in display handling for doc_type = 'group'

Refer to: http://manage.dimagi.com/default.asp?132496#756620