refactor adding and removing members to groups
refactor add/remove members from group