functionality added to progress-bar