Fixed the ajax area of the admin.php page, need to fix the department query next