Chang'an City, and immediately put Wei Wen in overall command of the imperial guards, with his cousin Wei Xuan (韋璿) and nephews Wei Bo (韋播) and Gao Song (高嵩) in command as well. But Emperor Zhongzong's death was discovered by Princess Taiping faster than Empress Wei wanted to secure her power, and Princess Taiping and another powerful woman, Emperor Zhongzong's concubine Consort Shangguan Wan'er, drafted a will on Emperor Zhongzong's behalf that attempted to balance the various factions — having Emperor Zhongzong's son by another concubine, Li Chongmao the Prince of Wen, take the throne, and having Empress Wei as empress dowager and regent, assisted by Li Dan. This performance of Princess Taiping angered Empress Wei and her clan and faction. Immediately, Empress Wei's cousin Wei Wen, wanting to have Empress Wei take sole power, however, modified the will to remove Li Dan as coregent. Accordingly, Li Chongmao took the throne (as Emperor Shang), while Empress Wei became empress dowager and regent. The foiling of Princess Taiping's plan terrified her and her followers, prompting them to wage a carefully planned war against Empress Dowager Wei and her powerful clan and faction. Meanwhile, Empress Dowager Wei's clan members, along with Zong Chuke, Li Guo'er's husband Wu Yanxiu (武延秀), and other officials Zhao Lüwen (趙履溫) and Ye Jingneng (葉靜能) were advising her to take the throne, like Wu Zetian did, and they also advised her to eliminate Li Dan and Princess Taiping. The official Cui Riyong leaked their plan to Li Dan's son Li Longji the Prince of Linzi. Li Longji responded by conspiring with Princess Taiping, Princess Taiping's son Xue Chongjian, as well as several low level officials close to him — Zhong Shaojing, Wang Chongye (王崇曄), Liu Youqiu, and Ma Sizong (麻嗣宗) — to act first. Meanwhile, Empress Wei's nephews Wei Bo (韋播) and Gao Song (高嵩), who had recently been put in command of imperial guards and who had tried to establish their authority by dealing with the guards harshly, had alienated the guards, and the guard officers Ge Fushun (葛福順), Chen Xuanli (陳玄禮), and Li Xianfu (李仙鳧) thereafter also joined the plot. Under the full planning and some command actions of Princess Taiping (such as financing, gathering opposition political and military forces against Empress Dowager Wei, joining the army to attack the palace, and carefully preparing how to attack), without first informing Li Dan, the conspirators (under the