fixed flickering. only add progressView, when progress is shown