update the directive demo