text editor improvement