add alert dialog to quit