Show dialog when clicking to close modified tab