added back in the event.preventDefault for the onclick handler