hides progress bar when necessary