restructured to split pages and posts