stop event propagation on tab click