add cursor adapter pagination.