help save referrals form while editting

prompt users before navigating away while referrals dialog is open
Merge pull request #177 from CruGlobal/prompt-before-abandoning-referrals

help save referrals form while editting