ActionListeners logic transferred from GUI classes to Action class.