getWidgetName method added