adding updating prevNode in liveWireDP()