iterator works for jump to the last page when using bootstrap pager