Refactored circular progress bar to allow animation