prevent default event, logging for debugging