ask of discard changes if wizard is dirty and fixes #319