update the buttons for newer and older