fix bugs for admin.html