various fixes for widgettoscreen. change widget.window.windowtoscreen to widget.widgettoscreen