added option to close other items when one is opened