moved todoTemplate in scope of buildtodo