created logic to add and remove users from group