do not show next or prev pagination buttons if there are no pages