added the block to setup the display count of pages and items