updating the buttons