adding a progress indicator