added preventDefault on backspace