add previous/next links for result tables