updated memberships controller