adding update action for tasks