new function of updating balance by Dialog