Finalized edit functionality