keep track of the currentDomId

otherwise it's not really possible to ensure the dom id is unique