use detachTo directive