Add depend tag for the event and its listener