texteditor: added tab control using backspace and erase