task update through ajax post and ui refresh