change the event the script listens for