Added edit and delete function to todolist