attachTo method for DynamicText and DynamicComment