add null check on grid content for group header formatting, merge subgroup background css to single entry