properly edit subdomains when deactivating domains