prevent page change on backspace.