add pages and indexes