behavior of markdown dialog close is now correct: you can not operate on topbar while dialog it's open.

fixed: cancel button does not restore the parts to its original values.