Added a hook in the extensions to turn themselves on or off