add respond_to support for the resource