added support for DOM change