Add event logic to ButtonSwitch