Changed confirm msg when creating a new model.
Fixed handling of dialog close button.