Added DataType Enum to figure out the type of data needed to be displayed. Also made the display of subgroup look better.