add close-button to the sidebar in the graph