Update widget class to separate widget display into a separate method. Repair several PHP  notices.