Added ability to show/hide progress bar