added default setting and link state which stops dragging