Directive improved with an isolated scope