add auto ui for dialog, merge signup/login/logout into rpc