edited destroy method in memberships