refactored memberships destroy action