The event "value" is not really required since this operation works as a toogle. This change cleans and simplifies the code.