dispatching event when items visibility is changed