Implemented detachComponent()