added functionality to edit ToDos