refactor editor tabs