prevent default event on elements that trigger modals