fix bugs with swapping direction, handle backspace and delete for changing cell contents