Applying new changes of gadget registry APIs