update the data when click refresh button