Collapse the sidebar and list upon clicking the headers