Trigger events on list show and hide