changed ajax manager object to class