fixed search tab functionality