Togglebox refactoring. New methods and events.