Removed extraneous pages from pagination