First changes to ajax calls