improved the admin.js