added backspace del functionality