add a progress dialog