set up pagination

Set up pagination. It jacked up the formatting, but that should be
workable.