fix the todo app to show remaining count correctly