Remove logging statements
Use preventDefault over pointer-events to ignore clicked header elements