avoid event propagation when clicking on dialog