add callback when cell is opened for edit