Make page index object

Continuing to extract functionality into external classes.