Expand and edit collections when clicking on them in the sidebar