fix bug and add the processing

change the view in api .
add the processing when the value does not exist.