adding pages property
returning all pages
fixing pages