add dialog for preferences. attach preferences to search queries.