Improve animation and display of progress bar