added to progress dialog functionality