attachChild in controller