continue refactor
refactor pages into an object