Added onclick update of the webapi call