Fixes bugs in admin.js and grid.blade.php