updated pagination api to v2.