update ui codes

update ui code, and fix bug and update restfull api test case