Who came under tight control during the Tang dynasty?