Added Trigger events when serving directories and files