Added preventDefault() call to the click event