Plugging in widget code