clean up sidebar when there are no tables to display