pages and subpages working and displaying