add global responser,to support json response and html response