changes code to handle new $ for widget/notifier and sb.events.add