Adding a render event trigger when an element is added