on/off/toggle: do not redirect if ajax parameter is present