updated pages to correctly create page structure