append todo as DOM element with template