refactored TodoView