basic text editor methods moved