deleted repeated functions in admin.js