refactored progress bar
refactored progress bar