Which dynasty ruled all of china?