fixes and updates on dom module