Just want to share a little bit about Yong He Temple, and some of the related 'stories' that is connected to Kyabje Pabongkha Dorje Chang (previous lives as Changkya Rolpai Dorje) and also Dorje Shugden and how they have helped the growth of Buddhism and also the Dalai Lama's institution.
Building work on the Yonghegong Temple started in 1694 during the Qing Dynasty. It originally served as an official residence for court eunuchs. It was then converted into the court of the Prince Yong (Yin Zhen)- the future Yongzheng Emperor, a son of the Kangxi Emperor (who is said to be an incarnation of Zimkhang Gongma lineage - Dorje Shugden). After Yongzheng's ascension to the throne in 1722, half of the building was converted into a lamasery, a monastery for monks of Tibetan Buddhism. The other half remained an imperial palace.
After Yongzheng's death in 1735, his coffin was placed in the temple. The Qianlong Emperor, Yongzheng's successor, gave the temple imperial status signified by having its turquoise tiles replaced with yellow tiles which were reserved for the emperor. Subsequently, the monastery became a residence for large numbers of Tibetan Buddhist monks from Mongolia and Tibet, and so the Yonghe Lamasery became the national centre of Lama administration.
Now, Rolpai Dorje was recognized as a reincarnation of the previous Changkya Lama (1642-1714) in 1720 and taken to court in 1724, after his home monastery was destroyed by Qing troops in response to the rebellion led by Lobsang Danjin. Rolpai Dorje was later identified as an incarnation of the great Sakya scholar and statesman, Pagpa Lodro Gyaltsen as well.
At the Yongzheng Emperor's court, Rolpai Dorje was educated in close proximity to the prince who eventually became the Qianlong emperor. This relationship proved extremely significant; Changkya served as Qianlong's main Buddhist teacher and adviser in matters related to Buddhism, including art, literature, religious initiations and practices, and diplomacy. His education included training in most of the languages in use under the Qing, including Manchu, Chinese, Mongolian, and Tibetan as well as the various Buddhist topics suited to his role as a lama.
Changkya Rolpai Dorje was later named chief administrative lama in Beijing. Early in his career as administrator, Changkya urged Qianlong to grant disputed border areas to the Dalai Lama. Although the emperor refused to grant the land, he did follow Rolpai Dorje's advice in part, by granting the Dalai Lama a sizable yearly allowance. After internal political tensions in Lhasa came to a climax in 1751 with the execution of the secular leader Gyurme Namgyal, Qianlong officially named the Dalai Lama the political and religious leader of Tibet. Rolpai Dorje's disciple and biographer Tukwan Lobzang Chokyi Nyima (1737-1802) asserts that this significant decision was largely due to Rolpai Dorje's advice.