working on text editor