Adding prevent default to the event.