auto-exchange options on tab change