fix  button register toggle event