refactory dom struct in order to drag.