setting the right parent on dom tree events
adding target of modified element