caught new edge case for adding groups caused by enabling deleting and editing groups. Thanks Nithin!