Adding update progress bar Function with buttons