When the user changes a tab, the selections in the other tabs must be cleaned. Fixes #1.