improve selecting/deselecting row logic and grouping button enabling
improve selecting/deselecting row logic and grouping button enabling

onaio/kpi,onaio/kpi,kobotoolbox/kpi,kobotoolbox/kpi,onaio/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,onaio/kpi