added prevent default to click event