add event for clicked refresh button