extract pager from index.php. it doesn't tested.