Merge addEditorPane and addNewTab