Tab title update when doc is modified. Close confirm dialog.