Adding progress dialog when updating the list of contacts.
Removing unused variables for progress dialog.