set up toolMode var and related switch in TypoScript