Add undo to row reordering