fix event propagation within the show/hide button