added whitelist emails in helpers
received_referrals logic and table frame built
added structure/tabs to sent_referrals & received_referrals (js not done)