added sweep code and made button in sliders