working with nested directives and managing scoped events