Edit search_by_criteria controller