fixed bugs

- now editing cell can be set after insert
- button clicks are now invalid while editing