setup_component_observers function

Set up observers for different component types