handle backspace and del
backspace hack