TodoList methods refactoring