Add to results css
Wrap pagination-alterations in a function

Also try to remove some of the span soup