refactored todo edit to simple replace of todo instance