Worked on Referral Page and refactored