added ajax change task state