simplify / unify some of the pagination / format links stuff