Adding event handling for ContentDirectory