undo implemented for adding and removing of items.

undo implemented for adding and removing of items but now need to work
on editing of header, content and moving of items.