fixing the widget code editor