added support for a method to dynamically return an element to mount the component on