small tweaks to pagination