started pagination. displays automatically correct number of pages