page numbering refactoring