Commit the selection of the tabs when switching the sections