add additional funcitonality for pagination