selecting items in the sidebar now selects the corresponding tab