Added a progress dialog and error dialog for the sync to provide the user with more feedback