added functionality to todo list