added loading for snackbar