fixed widget code