Implemented color progress bar
refactoring