using checkboxes to switch from edit to preview
Wrapping content in divs for easier styling
Updated example app