function of detecting 'unfinished todos' finished