emit events on show, hide, toggle for convenience