formatting and adding links