adding event tracking to sidebar button