Fixing logic for jumping from one search tab to another