added script to update the progress bar vlue