Fixed Buttons and added a function that creates a variable number of sliders