update

quit app when close window.