Trying to update data onclick