action listener in main program