Renamed ajax calls to proper methods.