Instantiating of custom elements