fixed the ajax update