Fix #437, persist adv mode state in user pref
Merge pull request #614 from twosigma/alee/fix-437

Fix #437, persist adv mode state in user pref