Added backspace functionality