Function with params for listing ToDo