add events for drawing items