implemented done action for each task