Add 'New' function in editor dialog