Updated progress bar functionality