Add click events to margin markers