working on texteditor