ok i make it with closeEvent