fixed the up and down buttons