added a slider to change speed