update addLink to use html builder; fix error in removeFromLinkObjs