Implementing update functionality for tasks