Refactored common search functionality to admin/searches.js