fixed null reference exception
removed a bit of code from admin.js that isn't required for editing categories