Prevent default and stop propagation to modal windows