fix save missing fields bug
add pie chart