[BUG #8196] Added selector parameter to initWidgets