Add loading on pagination action