removed test in admin.js
refacored all code in new classes