add header param for json_response
fix some bugs in model