change click event to DOMSubtreeModified event