encapsulating settings, controls, etc in mode definitions