refactored progress bar code
Merge pull request #48 from mule-deer-2013/progress_refactor

refactored progress bar code