changed number of pages in the adapter