changed the event name for preventDefault