Extract hiding/showing progress view in its own method