using more respond_with instead of render as_json