Added preventDefault for click event.