Add IBActions for the three buttons.