setProgressValue function added (positive and negative)