Added a changes check to editor tool to ask user if he/she wants to save before leaving current diagram