centralized ajax changes