Resolving DOM confusion in the modal addons