prevent default on dim clicking