modified helper to allow us to pass params for multiple paginations in one action