Added ActionListener to buttons.