generic search dialog