add clear completed tasks func