update callback function for each cell;