implement marking task completed