refactor paginator, introducing new variable $PREV, $NEXT and $END. By
default, 10 pages are display. you can use numPage for managing how many
page are display