added preventDefault() to event