added add nested command
Added undo for delete command