Adds buttons for viewing previous page and next page.