Added the interaction for the sidebar