do some clean up; add itemClicked check func-> isOpen