added preventDefault example