Stop event bubbling in some cases