added progress dialog