sliders and buttons logic fixed