Answer
After the Xuanwu Gate incident, Emperor Gaozu took on the title of Taishang Huang. This was a title that was given to retired emperors, and it allowed Emperor Gaozu to retain some power and influence while still allowing his son, Emperor Hui, to rule. This was a common practice in Chinese history, and it allowed for a smooth transition of power from one emperor to the next.