Editing links functionality