added respond_with block to_json call