Rework todocontroller
Pass the calendar and data directly to the functions instead of going via the member variables. This simplified the code a bit.
This also prepares for a even larger refactoring that will come in a future MR
Pass the calendar and data directly to the functions instead of going via the member variables. This simplified the code a bit.
This also prepares for a even larger refactoring that will come in a future MR