add search function to admin
a little modification