Added editLink() function