adds functionality on the sidebar