Add tab-active function for search.php