added ability to associate activities with group