add functions from ToDoController into factory