Changed page creation

Changed the way a page is created and displayed behind the scenes.
Allows future work to be easier