[ui][ComponentManager] Remove meaningless commented out code.
[ui][ComponentManager] Attach listeners automatically, without listening to the window's load event.