finish pagination