Improved search in reference dialog