add_control function

Add a control to the widget