needs debugging for sliders to work