Correct edit link (and actually implement edit)