mode gadget definitions into controller scope