Save current tab index