the government moved to the contemporary city during the tang dynasty