set the click handler on the div