improved invitations fragments, less duplicated code