adds new pagination HTML and updates top-level links
updates pagination CSS