Initial working version of the pages view.