text editor improvements