update the lookup table also when we backspace