Made the up and down buttons work