Small fixes to new AddAdminPages code (usings and avoiding deprecated methods)