refactor tableeditor. fix battlescreen in-editor usage