updating progress bar, (fixing pause/resume)
updating progress bar