Move paginte outside of TableQuery