move search result string handling to admin.js

• since the search input is only shown in the admin context