Adding handler for accepting changes to existing todos