added the update client api and updated the demo