implemented a checkswitch for use in restriction editors