statement pagination control improvement