Connected the button to an actionListener.