Slider and Switch working