adding new pages and elems