fix bugs in admin pages loading