update for loadingbar