Implemented editing mode and reordering of cells