fixed how selected_groupId work so that it properly handles null values when first creating the gadget
repacked the gadget