Added the slider functionality with the text box