Adding backspace functionality