cancel events. obtain elements from events.