Fix #269 by popping up dialog when user tries to navigate away
Merge pull request #605 from twosigma/alee/fix-269

Fix #269 by popping up dialog when user tries to navigate away