Fixed ajax call, modified it in all steps