Added in place edit function