added event tracking to links