creating pages and merged