added max page number (default 10000) and changed class name of page headers to avoid confusion