search dialog working