New way to deal with events of radio buttons