Updated codes for the admin dashboard.