implement ui_main
Merge pull request #2 from ZJUGKC/master

implement ui_main