added the logic to show the progress view