the controller is removed global variable for the main window. Now all
the reaction to button presses proizvodyats yalokalno in actionPerformed
()
windowListener placed in a separate class