resolved issue with displaying thousands of pages