updated markup and styles for write, preview, edit views