auto register component for global