Edit task of ajax