more log params, and add preventDefault check: