add search function for admin