Migrate TED related code to Widgetfy