Added missing code for admin search