change edit to done and vice versa when editing table