class MainWindowListener added