add event.preventDefault for routing