close #908 show dialog when discard the card editor with content