added loadingClass to redirect trigger