using scopes in directives