Added the accordion functionality to the sidebar