fixed some bugs in the admin dashboard