adds document page and styles