paging logic added to tablelite