fixing the flicker  and reanimation when a cell is selected in edit mode