add switch button to editing box