Added updateState to task detail response