set content-type when rendering