AJAX works for search in manger's page