add widget select function