Reduced some duplicate code, but not as much as I would've liked
Added external link icon