Made code readable. Added event tracking to specific links.