Refactor progressbar using in Composition