pagenated pages lost total, code added to pass total through params to next page