replace tab by spaces, add optional button to toggle preview
include optional button to show/hide preview in the demo