added addtodo functionality