Moved ajax error functions and definitions to the AdminMenu module