complete function,UI need optimize