added action listeners to the buttons, text fields, and jlist. these
methods need to be defined.