Stop attaching d3 events multiple times

Change-Id: Ib29e58f0577d0b63765ac8207752ccc9d8ee98f4