Add function for topbar search