Toggle preview and edit panes