add a control panel to the interface. The corpus setting is correctly taken into account but not the weight setting yet