added number of pages to view