got cancel on progress dialog working correctly now.