Made referral modal more generic