added functionality to todo app