make the buttons work