replaced the false return with prevent default