update percentage bar