data binding between write and preview directives is done