set content type when invoking action