Refactored the pending memberships invites