progress bar update after clicking button