update renamemapdialog.js:
if _element is not created before dialog.show, we call render method;
update mindmap.js:
if the map is modified, we confirm before leave page.