search and advanced search sharing same csv generator