added search and proper filtering to admin dashboard