fixed getWidgetLink() method