added search preference and intent