switching between modes is captured in the URL hash