add up down refresh function