Able to get type of undo item...

so when clicking on item, can execute action depending on type.