Removed init from export; Fixed uiComponent check