when attaching handler to the event check if event target is correct and only in this situation call handler function