add pages and structure