debugged double ajax bug, refined syncing call sequence