properly format link