search popup functionality