Add a progress dialog to inform the user about the ongoing operation and show a snackbar with the result of the operation.