updated handle on show and hide events
added toggle for closed classes