added ActionListener to handler events from buttons.