linked the scope to the directive