abstracted ActionEvent handlers to ActionEvents