Implemented two-pane view with editor and preview.