refactor, display percentages in progress bar