get ajax pagination working