refactor pager plugin
pager plugin complete