PLFENG-2210: modified gadget to use gadget preferences