link preview function on page