re-added willInsertElement hook