add preference to switching between tabs