Conditional HTML and preview pane