diff --git a/routes.js b/routes.js
index <HASH>..<HASH> 100644
--- a/routes.js
+++ b/routes.js
@@ -52,7 +52,7 @@ var json_routes = {
         var name = req.body.model,
             id = req.body.id;
 
-        require('../dependencies').check(MongooseAdmin.singleton.models, name, id, function (err, results) {
+        require('./dependencies').check(MongooseAdmin.singleton.models, name, id, function (err, results) {
             var json = _.map(results, function (result) {
                 return result.name || result.title || result.toString();
             });
@@ -316,11 +316,11 @@ var routes = {
 
         var filters = parseFilters(model, query, search_value);
 
-        MongooseAdmin.singleton.modelCounts(name, filters, function (err, total_count) {
+        MongooseAdmin.singleton.modelCounts(name, filters, search_value, function (err, total_count) {
             if (err)
                 return res.redirect('/');
 
-            MongooseAdmin.singleton.listModelDocuments(name, start, count, filters, sort, function (err, documents) {
+            MongooseAdmin.singleton.listModelDocuments(name, start, count, filters, search_value, sort, function (err, documents) {
                 if (err)
                     return res.redirect('/');
pass on search value to AdminModel