implemented returning group and friend invitations