got selection toggle working finally