Implemented update functionality on tasks