updated pagination to show only 10 pages at a time, google style
use constants for number of pages and page offset