Created actionevent for Quit button