Which dynasty became ruler of Tibet