replacing WidgetStateService form type annotations with a more appropriate mime type