Majors changes in updating with ajax