Add method for binding preview to the preview div