Adding progress bar to UI components.