Added the control of the progress bar