Added action listener to main window class