update loading bar