delaying progress dialog based on time