Modified UI.
Merged Xinyu and Yongsheng's code.