fixed table edit bug where leaving didnt clear changes