add modeSelector