automatically ask for saving when closing/opening/reopening