added animation to progress bar