Added undo/redo on add batch.
Fixed undo/redo in add batch.
Fixed a few bugs and implemented undo/redo for remove item.
Merge undoRedo