navmode state var, don't rely on history