Adding pages to document