added buttons for the slider based on state