how to keep track of cell selection, after change cell count