Change progress dialog loop