cleans up html, adds some links