seperated actions form the listeners to the GUI class