@author:Jession
 finished UI master function