Replace the link after it's clicked