finished the UI interface