Added spinner loading when pagination is cliced