Working on the text editor