Proper DOMLayer handling of adding and removing nodes (trails)