added event analytics to each button