destroy deselected items at the end and just dispose them before,
because some descendant nodes of the disposed one are used after
disposition (fixes IE error, but is also the more correct approach)