Add new method and hook `dispose`.
Check for element's parentNode before removing.

The dispose or beforeDestory hook can remove the element if they choose.
Wrap view's dispose and destory and publish.