add backspace functionality