add 用户管理; reorganize code structure