Refactor : whiteBoardDirective