update api for hide field