added leave method for groups