Update directive to update selected cells.