ADded dynamic coloring to progress bar