preserve mode passed on initial URL hash