edit feature implemented, but doesn't delete old version