added backspace and undo command