Add editing functionality and links